package com.ruifu.common.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruifu.common.eneity.BaseEntityPlus;
import lombok.Data;

import java.io.Serializable;

/**
 * 物料结构实体
 *
 * @author lcq
 * @create 2019/12/23
 */
@Data
@TableName("materiel_structure")
public class MaterielStructure extends BaseEntityPlus implements Serializable {
    private static final long serialVersionUID = 7881566683259161154L;
    /**
     * 结构ID
     */
    @TableId(value = "st_id", type = IdType.AUTO)
    private Long stId;

    /**
     * 父项版本id
     */
    @TableField(value = "st_parent_project_versions_id")
    private Long stParentProjectVersionsId;

    /**
     * 序号
     */
    @TableField(value = "st_serial_number")
    private Integer stSerialNumber;

    /**
     * 子项物料id
     */
    @TableField(value = "st_materiel_id")
    private Long stMaterielId;

    /**
     * 数量
     */
    @TableField(value = "st_amount")
    private Integer stAmount;

    /**
     * 是否可选，0不可选,1可选
     */
    @TableField(value = "st_is_optional")
    private boolean stIsOptional;

    /**
     * BOM类型:D-设计BOM P-工艺BOM E-生产BOM
     */
    @TableField(value = "st_bom_type")
    private String stBomType;
}

